package com.loveprogrammer.metadata.asynctool.callback;

import com.loveprogrammer.metadata.asynctool.worker.DependWrapper;

import java.util.Map;

/**
 * @ClassName IWorker
 * @Description 任务单元的接口
 * @Author admin
 * @Date 2023/11/13 13:46
 * @Version 1.0
 */
@FunctionalInterface
public interface IWorker<T,V> {

    V action(T object, Map<String, DependWrapper> allWrappers);

    default V defaultValue() {return null;}
}
